<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 92 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */
 .style92p171{position:absolute;left:223px;top:220px}

 /* Position Styles */
 .ts92p0{position:absolute;left:106px;top:97px;}
 .ts92p1{position:absolute;left:352px;top:97px;}
 .ts92p3{position:absolute;left:672px;top:97px;}
 .ts92p7{position:absolute;left:106px;top:113px;}
 .ts92p8{position:absolute;left:706px;top:1026px;}
 .ts92p9{position:absolute;left:331px;top:1044px;}
 .ts92p13{position:absolute;left:106px;top:146px;}
 .ts92p15{position:absolute;left:106px;top:164px;}
 .ts92p17{position:absolute;left:106px;top:183px;}
 .ts92p18{position:absolute;left:380px;top:200px;}
 .ts92p20{position:absolute;left:613px;top:435px;}
 .ts92p21{position:absolute;left:106px;top:450px;}
 .ts92p22{position:absolute;left:106px;top:468px;}
 .ts92p23{position:absolute;left:106px;top:486px;}
 .ts92p25{position:absolute;left:106px;top:505px;}
 .ts92p27{position:absolute;left:106px;top:523px;}
 .ts92p28{position:absolute;left:106px;top:543px;}
 .ts92p30{position:absolute;left:106px;top:561px;}
 .ts92p32{position:absolute;left:106px;top:579px;}
 .ts92p34{position:absolute;left:106px;top:597px;}
 .ts92p35{position:absolute;left:106px;top:615px;}
 .ts92p37{position:absolute;left:106px;top:633px;}
 .ts92p39{position:absolute;left:106px;top:651px;}
 .ts92p41{position:absolute;left:106px;top:669px;}
 .ts92p43{position:absolute;left:106px;top:688px;}
 .ts92p46{position:absolute;left:106px;top:706px;}
 .ts92p48{position:absolute;left:106px;top:724px;}
 .ts92p50{position:absolute;left:106px;top:742px;}
 .ts92p52{position:absolute;left:106px;top:760px;}
 .ts92p54{position:absolute;left:106px;top:778px;}
 .ts92p56{position:absolute;left:106px;top:796px;}
 .ts92p58{position:absolute;left:106px;top:814px;}
 .ts92p60{position:absolute;left:106px;top:833px;}
 .ts92p63{position:absolute;left:106px;top:851px;}
 .ts92p65{position:absolute;left:106px;top:869px;}
 .ts92p67{position:absolute;left:106px;top:887px;}
 .ts92p69{position:absolute;left:106px;top:905px;}
 .ts92p71{position:absolute;left:106px;top:923px;}
 .ts92p73{position:absolute;left:106px;top:941px;}
 .ts92p75{position:absolute;left:106px;top:959px;}
 .ts92p77{position:absolute;left:106px;top:978px;}

 /* Font Styles */
 .ft0p92{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p92{font-weight:normal;}
 .ft2p92{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p92{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p92{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p92{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p92{font-style:normal;font-weight:bold;font-size:16px;font-family:helvetica,arial,sans-serif;color:#000000;}
 .ft7p92{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}

 /* Background Style */
 .styleBackground92{position:absolute;left:97px;top:541px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index91.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;92 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index93.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground92><img src="./background92.png" width="633" height="514" border="0" alt=""></div>
<div class=style92p171><img src="./image92_171.png" width="390" height="230" border="0" alt=""></DIV>
<div class=ts92p0><span class="ft0p92"> </span></div>
<div class=ts92p1><span class="ft0p92">Gravitybox Schedule Primer<span class="ft1p92"> </span></span></div>
<div class=ts92p3><span class="ft0p92">Page 90&nbsp; </span></div>
<div class=ts92p7><span class="ft2p92"> </span></div>
<div class=ts92p8><span class="ft3p92"> </span></div>
<div class=ts92p9><span class="ft4p92">1998&#45;2004 Gravitybox Software LLC<span class="ft3p92"> </span></span></div>
<div class=ts92p13><span class="ft5p92">is no free spot available before the end of the schedule, this method returns a reference </span></div>
<div class=ts92p15><span class="ft5p92">to Nothing. </span></div>
<div class=ts92p17><span class="ft5p92"> </span></div>
<div class=ts92p18><span class="ft6p92">Figure 8.2 </span></div>
<div class=ts92p20><span class="ft5p92"> </span></div>
<div class=ts92p21><span class="ft5p92"> </span></div>
<div class=ts92p22><span class="ft5p92">After calling the method with an IgnoreIndexes parameter set to &#147;2&#148;, the GetNextSlot </span></div>
<div class=ts92p23><span class="ft5p92">method will return results that may be used to move the specified appointment to the </span></div>
<div class=ts92p25><span class="ft5p92">next free slot. </span></div>
<div class=ts92p27><span class="ft5p92"> </span></div>
<div class=ts92p28><span class="ft7p92">Dim oCurrent As CScheduleEl </span></div>
<div class=ts92p30><span class="ft7p92">Dim oItem As CScheduleEl </span></div>
<div class=ts92p32><span class="ft7p92">Dim dtNextTime As Date </span></div>
<div class=ts92p34><span class="ft7p92"> </span></div>
<div class=ts92p35><span class="ft7p92">&nbsp; 'Appointment to be moved </span></div>
<div class=ts92p37><span class="ft7p92">&nbsp; Set oCurrent = Schedule1.ScheduleItems(2) </span></div>
<div class=ts92p39><span class="ft7p92">&nbsp;&nbsp; </span></div>
<div class=ts92p41><span class="ft7p92">&nbsp; 'Get the next time on the schedule after this </span></div>
<div class=ts92p43><span class="ft7p92">&nbsp; 'selected appointments StartTime </span></div>
<div class=ts92p46><span class="ft7p92">&nbsp; dtNextTime = DateAdd(&#34;n&#34;, Schedule1.ScheduleIncrement, _ </span></div>
<div class=ts92p48><span class="ft7p92">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oCurrent.StartDate) </span></div>
<div class=ts92p50><span class="ft7p92">&nbsp;&nbsp; </span></div>
<div class=ts92p52><span class="ft7p92">&nbsp; 'Search for next appointment </span></div>
<div class=ts92p54><span class="ft7p92">&nbsp; Set oItem = Schedule1.GetNextFreeSlot( _ </span></div>
<div class=ts92p56><span class="ft7p92">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dtNextTime, _ </span></div>
<div class=ts92p58><span class="ft7p92">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, _ </span></div>
<div class=ts92p60><span class="ft7p92">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oCurrent.StartTime, oCurrent.Length, _ </span></div>
<div class=ts92p63><span class="ft7p92">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oCurrent.Index) </span></div>
<div class=ts92p65><span class="ft7p92">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class=ts92p67><span class="ft7p92">&nbsp; 'Move the appointment to the next </span></div>
<div class=ts92p69><span class="ft7p92">&nbsp; 'free slot if one exists </span></div>
<div class=ts92p71><span class="ft7p92">&nbsp; If Not (oItem Is Nothing) Then </span></div>
<div class=ts92p73><span class="ft7p92">&nbsp;&nbsp; oCurrent.StartDate = oItem.StartDate </span></div>
<div class=ts92p75><span class="ft7p92">&nbsp;&nbsp; oCurrent.StartTime = oItem.StartTime </span></div>
<div class=ts92p77><span class="ft7p92">&nbsp; End If<span class="ft5p92"> </span></span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
